/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="EMAILS")
public class EmailsProteu implements Serializable{

    @Id
    @Column(name="MAIL_ST_CODIGO")
    private String mailStCodigo;
    @Column(name="MAIL_ST_REMETENTE")
    private String mailStRemetente;
    @Column(name="MAIL_ST_DESTINATARIO")
    private String mailStDestinatario;
    @Column(name="MAIL_ST_ASSUNTO")
    private String mailStAssunto;
    @Lob
    @Column(name="MAIL_ST_MENSAGEM")
    private String mailStMensagem;//BLOB
    @Column(name="MAIL_ST_ANEXO")
    private String mailStAnexo;
    @Column(name="MAIL_ST_HOST")
    private String mailStHost;
    @Column(name="MAIL_ST_USERNAME")
    private String mailStUsername;
    @Column(name="MAIL_ST_PASSWORD")
    private String mailStPassword;


    public String getMailStAnexo() {
        return mailStAnexo;
    }

    public void setMailStAnexo(String mailStAnexo) {
        this.mailStAnexo = mailStAnexo;
    }

    public String getMailStAssunto() {
        return mailStAssunto;
    }

    public void setMailStAssunto(String mailStAssunto) {
        this.mailStAssunto = mailStAssunto;
    }

    public String getMailStCodigo() {
        return mailStCodigo;
    }

    public void setMailStCodigo(String mailStCodigo) {
        this.mailStCodigo = mailStCodigo;
    }

    public String getMailStDestinatario() {
        return mailStDestinatario;
    }

    public void setMailStDestinatario(String mailStDestinatario) {
        this.mailStDestinatario = mailStDestinatario;
    }

    public String getMailStHost() {
        return mailStHost;
    }

    public void setMailStHost(String mailStHost) {
        this.mailStHost = mailStHost;
    }

    public String getMailStMensagem() {
        return mailStMensagem;
    }

    public void setMailStMensagem(String mailStMensagem) {
        this.mailStMensagem = mailStMensagem;
    }

    public String getMailStPassword() {
        return mailStPassword;
    }

    public void setMailStPassword(String mailStPassword) {
        this.mailStPassword = mailStPassword;
    }

    public String getMailStRemetente() {
        return mailStRemetente;
    }

    public void setMailStRemetente(String mailStRemetente) {
        this.mailStRemetente = mailStRemetente;
    }

    public String getMailStUsername() {
        return mailStUsername;
    }

    public void setMailStUsername(String mailStUsername) {
        this.mailStUsername = mailStUsername;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EmailsProteu other = (EmailsProteu) obj;
        if ((this.mailStCodigo == null) ? (other.mailStCodigo != null) : !this.mailStCodigo.equals(other.mailStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + (this.mailStCodigo != null ? this.mailStCodigo.hashCode() : 0);
        return hash;
    }

    

}
